package com.heima.model.admin.dtos;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


@Data
public class AdUserLoginDto {

    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空！")
    @Length(min = 4,max = 16,message = "名字必须为4-16位长度")
    private String name;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空！")
    @Length(min = 4,max = 18,message = "密码必须为4-16位长度")
    private String password;
}
